package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.data.bean.StrongComplaint;
import com.ys.erp.entity.mapper.StrongComplaintMapper;
import com.ys.erp.entity.service.IStrongComplaintService;
import jakarta.validation.constraints.NotBlank;
import org.springframework.stereotype.Service;

/**
 * @author lwj
 * @date 2025/7/24
 */
    
@Service
public class IStrongComplaintServiceImpl extends ServiceImpl<StrongComplaintMapper, StrongComplaint> implements IStrongComplaintService{

    @Override
    public StrongComplaint getByNo(@NotBlank String no) {
        QueryWrapper<StrongComplaint> qw = new QueryWrapper<>();
        qw.lambda().eq(StrongComplaint::getComplaintNo, no);
        return this.getOne(qw);
    }

}
